package com.baizhi.dao;

import com.baizhi.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDao {
    int insert(Department dep);
    int delete(Integer did);
    int deleteAny(@Param("dids") int[] dids);
    Department selectById(Integer did);
    int update(Department dep);
    List<Department> selectAll(@Param("name") String name);
    List<Department> selectGetJson();//ajax请求时  要展示所有的科室
    List<Department> selectTriageStatus();//查询每个科室  以及其下所有等待诊断的患者数量  显示在诊断页面首页
}
